// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import './assets/css/iconfont.css'
// elmentUI
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import './assets/theme/index.css'
import './assets/css/MessageBox.less'
import './assets/css/reset.css'
import './assets/css/public.css'
import './assets/css/dialog.less'
import './assets/css/table.less'
Vue.prototype.HOST = '/api'
Vue.config.productionTip = false
// 引入rem
import './config/rem'
import HttpUtil from './common/HttpUtil'
// 引入echarts
import echarts from 'echarts'

import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import App from './App'
import router from './router'

Vue.use(Viewer)
Viewer.setDefaults({
  Options: { 'inline': true, 'button': true, 'navbar': true, 'title': true, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': true, 'url': 'data-source' }
})
// import '../src/common/macarons'
//一般都要加个$加到vue的原型链上，方便引用
Vue.prototype.$echarts = echarts

Vue.use(ElementUI)
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
